package com.zff.rental.entity.statistics;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zff.rental.AppConstant;
import jakarta.persistence.*;
import lombok.Data;
import org.hibernate.annotations.Comment;

import java.time.LocalDateTime;


/**
 * 房间浏览记录
 *
 * @author HCY
 */
@Data
@Entity
@Table(name = AppConstant.ROOM_BROWSING_HISTORY_ENTITY)
@TableName(AppConstant.ROOM_BROWSING_HISTORY_ENTITY)
public class RoomBrowsingHistoryEntity {
    /**
     * 房间浏览记录Id
     */
    @Id
    @TableId
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column()
    @Comment("房间浏览记录Id")
    private Long id;

    /**
     * 房间Id
     */
    @Column()
    @Comment("房间Id")
    private Long roomId;

    /**
     * 用户唯一标识
     */
    @Column()
    @Comment("用户唯一标识")
    private String uid;

    /**
     * 浏览开始时间
     */
    @Column()
    @Comment("浏览开始时间")
    private LocalDateTime browsingStartTime;

    /**
     * 浏览结束时间
     */
    @Column()
    @Comment("浏览结束时间")
    private LocalDateTime browsingEndTime;

    /**
     * 扩展信息
     */
    @Column()
    @Comment("扩展信息")
    private String info;
}
